Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
krileon wrote: The best approach is to probably filter out users that have no set a country so users with no country aren't displayed at all. I don't think you can double sort like the way you're wanting.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
krileon wrote: You'll have to order as DESC instead of ASC so the blank values are placed last instead of first. That's just how SQL orders it.
Please Log in or Create an account to join the conversation.
Correct, making the blank values last as SQL sees them before A or any other character.in this way i have Z-A order,
Only way with Userlists is to filter out the empty values. Normally you'd just do a IF conditioned ORDER BY to have a custom order, but that'd be really slow as it can't be indexed.i guess there is no easy way to do what i want..
Please Log in or Create an account to join the conversation.