[PATCH 2/3] sysfs: correct and improve sorting