replace feature array with feature map, replacing one test case, breaking most of the others that expect sorted output. Is order important?
refactor
restoring order, if necessary
refactor: readability
fixing tests or ignoring the indexed parts