test sort category