|
public projectDataSource: Object[] = [
{ text: 'NorthWest', id: 1, color: '#cb6bb2' },
{ text: 'NorthEast', id: 2, color: '#56ca85' }
];
public sorted_projectDataSource = this.projectDataSource.sort(function (a, b) {
if ((a as any).text < (b as any).text) { return -1; }
if ((a as any).text > (b as any).text) { return 1; }
return 0;
});
public categoryDataSource: Object[] = [
{ text: 'Nancy', id: 1, groupId: 1, color: '#df5286', designation: "Cardioligst" },
{ text: 'Margaret', id: 2, groupId: 1, color: '#7fa900', designation: "Neurologist" },
{ text: 'Robert', id: 3, groupId: 2, color: '#ea7a57', designation: "Orthopedic Surgeon" },
{ text: 'Laura', id: 4, groupId: 2, color: '#5978ee', designation: "Dentist" }
];
public sorted_categoryDataSource = this.categoryDataSource.sort(function (a, b) {
if ((a as any).text < (b as any).text) { return -1; }
if ((a as any).text > (b as any).text) { return 1; }
return 0;
}); |