Catalog Sorting

used regular expressions to sort the different catalog types, since
they need to be handled differently.