initial sort implementation on theqweb front end