Fixed #10 and added regression test
Fix behaviour of ANOHE on treatment sorting

 - includes regression test for incorrect behaviour
 - breaks another regression test though