function sort(value, property) {
    return value.sort(getComparer(property));
}
function getComparer(property) {
    let result;
    switch (property) {
        case "created":
        default:
            result = (left, right) => (left.created < right.created ? 1 : left.created > right.created ? -1 : 0);
            break;
    }
    return result;
}

export { sort as s };
