sorting categories with jquery