sorting updated for public view