cleaned up pgrest sort keys