[sort] actually sort
assigned names to a lot of returned functions to ease debugging/performance optimization
[benchmarks] updated API accesses