densh / scala-offheap

Experimental type-safe off-heap memory for Scala.
BSD 3-Clause "New" or "Revised" License
532 stars 38 forks source link

Consider adding support for Array.sortWith #99

Open adam-wyluda opened 8 years ago

adam-wyluda commented 8 years ago

The implementation could be based on util.Sorting.quickSort.

I'm not sure if we should also support sortBy function, since it would require client to provide a reference to an on-heap implementation of Ordering typeclass. Perhaps our interface of sortWith (or we could name it just as "sort" in that case) could take additional mapping argument with identity function as a default value.