I'm trying to order a list by another list. I have a page that pulls up say 10 records. I then limit the number displayed to 5. However, in those first five listings, I want certains records to appear first until I hit my maximum of 5 records.
Since it is world cup time, let's use a soccer example. I have a list of teams and I want to pull up all the teams that have a player named "John" on them. Easy enough.
Then I want the order of diplay to match my own personal bias. Once I get the ten records, I want to (sort? order? prioritize?) the results according to the value of one of the fields, say:
USA
England
Japan
Korea
Brazil
As you can see, it is not an alphabetical sort or descending order sort. Is there a way I can make a custom sort order and then have my results run against that sort order? Or is this just going to be one massive series of IF statements prioritizing my output?