fixed buttons sorting