cover base sort query parser functionality