Created
December 9, 2021 14:27
-
-
Save MoodyBones/bcc89577d2455de72597b62222ad9a4f to your computer and use it in GitHub Desktop.
Revisions
-
MoodyBones created this gist
Dec 9, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ sortBy(field) { this.applicantsInfo.sort((a, b) => { if (a[field] < b[field]) { return -1 } if (a[field] > b[field]) { return 1 } return 0 }) }, // todo: asc, desc, reset