sorting functionality added to usernotes