The getEntries method in Entries.vue handles many things, including sort options when the toolbar is enabled, which makes the code a bit complex.
- Instead of an options property in the component, have named properties for each option: sort and dir.
- Add method for onSortChanged which can handle refetching entities.
- Make sortingText a computed property.
- Remove this.total (it seems used just for when the sorting options change, to determine whether the list is empty or not).
- Remove unused msgTotalArticles in special page.