fix binary cluster sorting