COP4331-LargeGroupProject-Fall22 / backend

Backend for SmartChef project, see https://github.com/COP4331-LargeGroupProject-Fall22/SmartChef
0 stars 1 forks source link

Upd: inventory logic, add sorting #88

Closed mplekunov closed 1 year ago

mplekunov commented 1 year ago

Can be merged to main, doesn't depend on other stuff.

mplekunov commented 1 year ago

All sorting parameters have isReverse implemented which allows to do reverse of every sorting type.

Sorting methods:

  1. By Category (assigns items to categories and then sort categories themselves in lexicographical order) (e.g CatA: [ ], CatB: [ ], CatC: [ ], etc.)
  2. By ExpirationDate
  3. By lexicographicalOrder (based on name)
mplekunov commented 1 year ago

removed quantityUnits from returned item because there is no need for those units in inventoryItem