bug fix, did not maintain equal status when sorted on enumeration