added helper methods for getting the ordered and filtered data