Corrected ordering algorithm
Publishsinining