ENG-4676: cleanup for change of LIMIT; override resolveSortDirection in NLIJ