Updated visibility of sort function