#667 - switch to reproducable sort