Returns inputs in sorted order, sorting only the last k items. ([5, 3, 8, 1], 1) --> [5, 1, 3, 8]
(String[] inputs, int k)
source not stored for this graph (policy: none)