FIX: Sorting categories by ID

FIX: Sorting categories by ID by using the usort function