added function name to update sort order