Added sort functions to Nymph JS.