Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the Semantic MediaWiki and have this #ask query:

{{#ask: [[Category:Journals]]
| ?Has Rating

The "Has Rating" has as allowed values: TOP25, TOP10, TOP5, and TOP1. How can I get the sort (asc or desc) to sort alphanumerically, so that TOP1 < TOP5 < TOP10 < TOP25?

share|improve this question

Hmm, it does not seem like it is supported natively, according to this page, but one could of course always hack around it with a hidden field without the text part (auto-populated with a call to parserfunctions, in a template, that cuts out just the number) (UGLY) or create a hacked javascript sorter. Not sure which one I would go for personally...

share|improve this answer
Well, an easier hack would be to use TOP01 and TOP05 ... but I was hoping for something less hacky :) – Egon Willighagen Aug 14 '13 at 18:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.