I have a table that list products. Users come to the website, mySQL database and classic ASP, and select products as a favorite. How do I display the page with the products selected as Favorite, A-Z first, then the remaining products A-Z again? I can do this in Access, but the web DB is not responding favorably. It's the same as you see on website like Fandango when you select your favorite theater. Example
| Product Table | User Favorites | Desired Result for U = 123 | |||||
| ID | Product | ID | Product | User | ID | Product | Favorite |
| 1 | Product A | 1 | Product A | 123 | 1 | Product A | * |
| 2 | Product B | 4 | Product T | 456 | 6 | Product F | * |
| 3 | Product M | 6 | Product F | 123 | 4 | Product T | * |
| 4 | Product T | 2 | Product B | 456 | 2 | Product B | |
| 5 | Product E | 1 | Product A | 789 | 5 | Product E | |
| 6 | Product F | 4 | Product T | 123 | 3 | Product M | |
| 7 | Product Q | 6 | Product F | 789 | 7 | Product Q | |
| 8 | Product R | 8 | Product R | 321 | 8 | Product R | |
| 9 | Product X | 5 | Product E | 321 | 9 | Product X | |