Tweak sorting on database table view