sort nicks in table