PHP> Sort query results by name while letting each letter be on the top sometimes

Posted by Don on Stack Overflow See other posts from Stack Overflow or by Don
Published on 2011-01-10T16:36:12Z Indexed on 2011/01/10 16:53 UTC
Read the original article Hit count: 170

Filed under:

Hi, I'm currently working on a site that will display a list of online shops, Each shop will be stored on my database and I'll be using PHP to select and display them.

But since those shops will pay me, I want to let each shop to be on the top of the list sometimes, (for example if the shop name starts with a "Z", they will probably complain for being on the bottom of the list all the time, so I want to keep it fair).

So I thought about letting each letter be on the top of the list for an hour, but i have no idea how to do that.. Is that even possible?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about php