prior to refactor getSearchSort
prior to fixing up some naming things within database tables and columns so can remove more nicename attributes and also labels