add sort into data base request from subcategory table