export const isSortDescending = (property: string) => property.indexOf('-') === 0; export const getSortProperty = (sort: string) => isSortDescending(sort) ? sort.substr(1) : sort;