I and my users in the registrants list want to see users sorted by Date registered. Please make possibility to select how results will be shown on Frontend by default.
For my events, it is all about seeing who registered in what order. There is a certain prestige to being #1 on the registration list.
I've used the following work around to have my initial display show by registration date instead of name. I do not use the group registration option, so I do not know if this would work for that situation or not.
In the file /components/com_dtregister/controllers/event.php, around line 587 (it is in the "function registrant()" section), you can change the filter order variable to initially sort by date:
If you notice, it is sorting your first page by the date but then it reverts to name when you move to other pages. I actually have my registration list displaying all the names on one page so I do not have any pages to worry about. You should be able to solve it by changing the following file as well: com_dtregister/views/event/tmpl/registrant.php
Around line 366, change the filter order to 'register_date' on the following line:
Thank you very much for help. Now works fine.
I have other question. Where I can make changes length of list of registrants. As I informed dt_register use default value of joomla settings, but joomla have only 100 and I need 200.
Once again, I hacked my way around this problem by changing the "event.php" file around line 595. The following will show all registrations. You may run into problems if you try to hard code a number such as 200 in there and have more than 200 registrations. I have no idea what that will do to the pagination (when you go to page 2, I'm not sure if will keep the 200 limit or go back to the joomla default of 5).
After these lines (which are basically getting your list limit):