"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "sortFunc", {
    enumerable: true,
    get: function() {
        return sortFunc;
    }
});
const _types = require("./shared/types");
const sortFunc = {
    vol: (direction)=>(a, b)=>{
            const aValue = a["24h_amount"];
            const bValue = b["24h_amount"];
            return direction === _types.SortDirection.ASC ? aValue - bValue : bValue - aValue;
        },
    price: (direction)=>(a, b)=>{
            return direction === _types.SortDirection.ASC ? a["24h_close"] - b["24h_close"] : b["24h_close"] - a["24h_close"];
        },
    change: (direction)=>(a, b)=>{
            return direction === _types.SortDirection.ASC ? a.change - b.change : b.change - a.change;
        }
};

//# sourceMappingURL=utils.js.map