press 'w' to switch between sorting methods for HAAR