sort db querty