Log buttons sorting