<filename>ramda/sort_by.py<gh_stars>10-100
from toolz import curry


@curry
def sort_by(comparator, list):
    """Sorts the list according to the supplied function"""
    return sorted(list, key=comparator)

<filename>ramda/sort_by.py<gh_stars>10-100
from toolz import curry


@curry
def sort_by(comparator, list):
    """Sorts the list according to the supplied function"""
    return sorted(list, key=comparator)

Sorts the list according to the supplied function