How to use the right-angled.SortDirection.Asc function in right-angled

To help you get started, we’ve selected a few right-angled examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eastbanctechru / right-angled / src / live-demo / shared / data / airports.service.ts View on Github external
        let directions = request.sort.map(sort => (sort.direction === SortDirection.Asc ? 'asc' : 'desc'));
        response.items = _.orderBy(data, fieldNames, directions);