fixed saving categories
added sort function for categories; show correct order in category table
added subcategory support for parent combobox in edit category form