Implemented basic filtering and sorting