@jplorg/jpl
Version:
JPL interpreter
8 lines (7 loc) • 393 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.sortEntries = void 0;
var _library = require("../library");
const sortEntries = exports.sortEntries = (0, _library.nativeFunction)(async (runtime, input) => [await runtime.alterValue(input, value => [...value].sort((a, b) => runtime.compareArrays(runtime.unwrapValue(a)[0], runtime.unwrapValue(b)[0])))]);