1.1.1 Incompleted Surveys show first using survey end datetime and showing them in oldest to newest order. In other words the order is by what expires next onwards.
1.1.2 After listing surveys that meet the criteria in 1.1.1 above, next show uncompleted Surveys that never expire (do not have an end datetime). These would use start datetime and if missing creation datetime from newest to oldest.
1.1.3 Finally, show anything Completed is always shown at the bottom of the list using completion date time and from most recent to oldest.
**Resolves #64
Type of changes
[ ] Bug fix (non-breaking change which fixes an issue).
[X] New feature (non-breaking change which adds functionality).
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected).
[ ] Other (any another change that does not fall in one of the above categories.)
Checklist:
[x] I have signed the Rokwire Contributor License Agreement (CLA). (Any contributor who is not an employee of the University of Illinois whose official duties include contributing to the Rokwire software, or who is not paid by the Rokwire project, needs to sign the CLA before their contribution can be accepted.)
Description
Sort Order when showing all (public) surveys
1.1.1 Incompleted Surveys show first using survey end datetime and showing them in oldest to newest order. In other words the order is by what expires next onwards.
1.1.2 After listing surveys that meet the criteria in 1.1.1 above, next show uncompleted Surveys that never expire (do not have an end datetime). These would use start datetime and if missing creation datetime from newest to oldest.
1.1.3 Finally, show anything Completed is always shown at the bottom of the list using completion date time and from most recent to oldest.
**Resolves #64
Type of changes
Checklist: