integration of sorting query library
Issue #79