category sort basic working

for real this time!!