add support for a sort query option