aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/need-list/need-list.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ufund-ui/src/app/components/need-list/need-list.component.ts')
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.ts b/ufund-ui/src/app/components/need-list/need-list.component.ts
index 4359cfa..37a3775 100644
--- a/ufund-ui/src/app/components/need-list/need-list.component.ts
+++ b/ufund-ui/src/app/components/need-list/need-list.component.ts
@@ -1,5 +1,4 @@
-import {Component, input, Output, EventEmitter} from '@angular/core';
-import { NgForm } from '@angular/forms';
+import {Component , Output, EventEmitter} from '@angular/core';
import {Need} from '../../models/Need';
import {CupboardService} from '../../services/cupboard.service';
import { UsersService } from '../../services/users.service';
@@ -39,12 +38,13 @@ export class NeedListComponent {
searchResults: Need[] = [];
sortMode = 'Ascending'
- currentSortAlgo: sortAlgo = sortByGoal;
- sortSelection: string = 'sortByGoal';
+ currentSortAlgo: sortAlgo = sortByName;
+ sortSelection: string = 'sortByName';
SortingAlgoArrays: {func:sortAlgo,name:string, display:string[]}[] = [
- {func:sortByGoal,name:"sortByGoal", display:["Maximum Goal", "Minimum Goal"]},
- {func:sortByName,name:"sortByName", display:["Name", "Name (Descending)"]},
+ {func:sortByName,name:"sortByName", display:["Name (Alphabetical)", "Name (Reverse)"]},
+ {func:sortByGoal,name:"sortByGoal", display:["Largest Maximum Goal", "Smallest Maximum Goal"]},
+ {func:sortByName,name:"sortByPriority", display:["Highest Priority", "Lowest Priority"]},
];
@Output() currentNeed = new EventEmitter<Need>();