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

This commit is contained in:
Stacey Gammon 2017-08-11 08:40:22 -04:00 committed by GitHub
parent 7cc9d5d7f0
commit fbebc272cb
2 changed files with 4 additions and 4 deletions

View file

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

View file

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