some pylint soothing
validating & re-sorting