Moving sort

For reference: http://www.elkarte.net/index.php?topic=591.0