Relative Content

Tag Archive for javascripttypescriptvue.jssorting

Sorting a object’s properties after reducing

I am recreating the effects of an outlook mailbox by grouping a list of outlook emails by their conversation id. However, I need to sort my list twice such that the emails in each group are ordered from newest email to oldest and also the conversation list itself needs to be sorted oldest to newest. Since the conversations are arrays it would need to use the first item in the array (which should be the newest of that array once sorted) to make this array comparison then.