chrisksamueljr / morgan-stanley-phone-screen-project

A UI Coding Excercise .
0 stars 0 forks source link

Sorting #1

Closed chrisksamueljr closed 5 years ago

chrisksamueljr commented 5 years ago

Clicking on the “Account” table header will sort the items by the account’s number (i.e.

“IRA – 0123” is smaller than “AAA – 5920” because “0123” is smaller than “5920”).

Clicking on the “Available Cash” table header will sort the items by it available cash

amount.

Sorting

  1. If the field is not yet sorted, it should be sorted ascending.

  2. If the field is sorted ascending, it should be sorted descending.

  3. If the field is sorted descending, it should be sorted ascending.

Next to the sorted field there will be a ^ character if ascending, v if descending.

Note: The sorting will simulate a server side sorting, meaning that it will sort the whole

list, including the hidden items (see next item).

chrisksamueljr commented 5 years ago

displayedColumns = ['identity', 'cash']

Identity is a column using id as a the string of digits and the rows sort based on ascending numbers descending and unsorted.

Cash is a column that rounds the numbers to the nearest dollar and then sorts them by ascending descending unsorted