fix #6: allow binary sorting method to be chosen