working row sort