demo sorting updated