Ordering categories using SQL

Looks like one of the moderators knows how to do it, will let you know. The word is it can be done via the hamburger menu ??