ArrayDataAdapter is wrapper class which can help to manage swift array for filtering and sorting without and condition and flag. It's simple plug and surf class which be more helpful with listing data over table view or collection view which have filtering and sorting option.
Checke out full detail here. https://medium.com/@pratiksodha/array-adapter-sorting-filtering-and-searching-709d9cc3f46a