Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
>>> const sort = require('immutable-sort')
>>> var a = [3, 2, 1];
>>> var b = sort(a);
>>> b
[1, 2, 3]
>>> a
[3, 2, 1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment