Be case insensitive when sorting on the visualize and dashboard landing pages (#13397)

This commit is contained in:
Stacey Gammon 2017-08-09 12:20:59 -04:00 committed by GitHub
parent e545b12018
commit db4eb64aef
2 changed files with 4 additions and 4 deletions

View file

@ -27,12 +27,12 @@ export function DashboardListingController($injector, $scope) {
const sortableProperties = new SortableProperties([ const sortableProperties = new SortableProperties([
{ {
name: 'title', name: 'title',
getValue: item => item.title, getValue: item => item.title.toLowerCase(),
isAscending: true, isAscending: true,
}, },
{ {
name: 'description', name: 'description',
getValue: item => item.description, getValue: item => item.description.toLowerCase(),
isAscending: true isAscending: true
} }
], ],

View file

@ -25,12 +25,12 @@ export function VisualizeListingController($injector) {
const sortableProperties = new SortableProperties([ const sortableProperties = new SortableProperties([
{ {
name: 'title', name: 'title',
getValue: item => item.title, getValue: item => item.title.toLowerCase(),
isAscending: true, isAscending: true,
}, },
{ {
name: 'type', name: 'type',
getValue: item => item.type.title, getValue: item => item.type.title.toLowerCase(),
isAscending: true, isAscending: true,
} }
], ],