in reply to Applying ASC sort with RAND?

To what purpose?

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Replies are listed 'Best First'.
Re^2: Applying ASC sort with RAND?
by JasonB (Initiate) on Apr 17, 2007 at 19:14 UTC
    Its part of a content management system. The output is sent to a template at build time. The actual code outputs a selection of categories from the DB, picked at random. This allows me to feature, say 100 category items on the home page. A much better presentation would be if these are then sorted by ascending order.