Sort task list by ID instead of status

The task list of a story should be sorted by ID, instead of status
so that a user can quickly navigate to a specific task

Story: 2001551
Task: 6492

Change-Id: Iaa09f52f1add074873b0e22efb1474ae996d72ca
Signed-off-by: Vaishnavi Pamulapati <vaishnavi.p@research.iiit.ac.in>
This commit is contained in:
Vaishnavi Pamulapati 2018-03-29 07:10:58 +05:30
parent 89b60c35ef
commit cb6c98a864
2 changed files with 2 additions and 2 deletions

View File

@ -429,7 +429,7 @@
<!-- Template for a table of tasks -->
<script type="text/ng-template" id="/inline/task_table.html">
<table class="table table-striped table-supercondensed">
<tr ng-repeat="task in projects[name].branches[branchName].tasks | orderBy: '-status'"
<tr ng-repeat="task in projects[name].branches[branchName].tasks | orderBy: 'id'"
ng-include src="'/inline/task_list_item.html'">
</tr>
<tr ng-show="isLoggedIn && !projects[name].branches[branchName].showAddTask">

View File

@ -291,7 +291,7 @@
<!-- Template for a table of tasks -->
<script type="text/ng-template" id="/inline/task_table.html">
<table class="table table-striped table-supercondensed">
<tr ng-repeat="task in projects[name].branches[branchName].tasks | orderBy: '-status'"
<tr ng-repeat="task in projects[name].branches[branchName].tasks | orderBy: 'id'"
ng-include src="'/inline/task_list_item.html'">
</tr>
<tr ng-show="isLoggedIn && !projects[name].branches[branchName].showAddTask">