Is a statement like the following possible? If not, do I need to rely upon the server side script (PHP) processing to generate a couniting index for sorting purposes?