// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
/** This module is browser compatible. */ /** Compares its two arguments for ascending order using JavaScript's built in comparison operators. */ export function ascend(a, b) {
    return a < b ? -1 : a > b ? 1 : 0;
}
/** Compares its two arguments for descending order using JavaScript's built in comparison operators. */ export function descend(a, b) {
    return a < b ? 1 : a > b ? -1 : 0;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0dHBzOi8vZGVuby5sYW5kL3N0ZEAwLjE2Ni4wL2NvbGxlY3Rpb25zL19jb21wYXJhdG9ycy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBDb3B5cmlnaHQgMjAxOC0yMDIyIHRoZSBEZW5vIGF1dGhvcnMuIEFsbCByaWdodHMgcmVzZXJ2ZWQuIE1JVCBsaWNlbnNlLlxuLyoqIFRoaXMgbW9kdWxlIGlzIGJyb3dzZXIgY29tcGF0aWJsZS4gKi9cblxuLyoqIENvbXBhcmVzIGl0cyB0d28gYXJndW1lbnRzIGZvciBhc2NlbmRpbmcgb3JkZXIgdXNpbmcgSmF2YVNjcmlwdCdzIGJ1aWx0IGluIGNvbXBhcmlzb24gb3BlcmF0b3JzLiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGFzY2VuZDxUPihhOiBULCBiOiBUKSB7XG4gIHJldHVybiBhIDwgYiA/IC0xIDogYSA+IGIgPyAxIDogMDtcbn1cblxuLyoqIENvbXBhcmVzIGl0cyB0d28gYXJndW1lbnRzIGZvciBkZXNjZW5kaW5nIG9yZGVyIHVzaW5nIEphdmFTY3JpcHQncyBidWlsdCBpbiBjb21wYXJpc29uIG9wZXJhdG9ycy4gKi9cbmV4cG9ydCBmdW5jdGlvbiBkZXNjZW5kPFQ+KGE6IFQsIGI6IFQpIHtcbiAgcmV0dXJuIGEgPCBiID8gMSA6IGEgPiBiID8gLTEgOiAwO1xufVxuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDBFQU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