corrected sorting order in CategoryViewController, and added regex for search criteria