updating sort example