Answers.Body: <p>I think it makes sense as the default behaviour. Can you go to the github project and add an issue there to talk directly with the developers and consider proposing that as a PR? <a href="https://github.com/webaccess/com.webaccessglobal.module.civimobile" rel="nofollow">https://github.com/webaccess/com.webaccessglobal.module.civimobile</a></p>
  
  <p>The line you'll need to change is the api call, and add a "option.sort"="whatever is the field for the participant name" param (use the api explorer to find out the exact syntax and name of the field name)</p>
  
  <p><a href="https://github.com/webaccess/com.webaccessglobal.module.civimobile/blob/master/code/civimobile.participant_checkin.html#L35" rel="nofollow">https://github.com/webaccess/com.webaccessglobal.module.civimobile/blob/master/code/civimobile.participant_checkin.html#L35</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-27T13:34:32.010Z
Answers.Text: This unable to get this working, get page not found sites/all/modules/civicrm//bower_components/lodash-compat/lodash.min.js when i add "options": {"sort":"display_name"} to the api call
Answers.UserDisplayName: Kboy
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-31T11:21:17.083Z
Answers.Text: modifying line 35 CRM.api('Participant','get', to CRM.api('Participant','get', {"sequential": 1,"options": {"sort":"display_name"} works just fine for CiviCRM version 4.3
  
  But when i do the same changes for CiviCRM 4.5.5 on line 35 of civimobile.participant_checkin.html for civimobile compatible version downloaded on github, i get page not found sites/all/modules/civicrm//bower_components/lodash-compat/lodash.min.js . Any idea how this sorting can be done in this version?
Answers.UserDisplayName: Kboy
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-30T07:32:17.923Z
Answers.LastActivityDate: 2015-04-30T07:32:17.923Z
Answers.UserDisplayName: Xavier
Body: <p>I will like the have the names of event participants listed alphabetically on the event check-in screen, how can i modify the civimobile extension (civimobile.participant_checkin.html) to list names alphabetically?</p>
  
  <p>I have this code but it doesn't work, </p>
  
  <p>CRM.api('Participant','get', {"sequential": 1,"options":  {"sort":"display_name"},
            'version' :'3', 'sort_name': q, 'event_id': eventId,   'participant_status_id': {1:1,2:2,5:5},
            'return' : 'display_name,participant_status_id', 'rowCount' : 500 },</p>
  
  <pre><code>    {
        success:function (data){
          if (data.count == 0) {
            cmd = null;
          }
          else {
  </code></pre>
  
Tags: <extension>
Title: How to sort civimobile event participant check-in list?
ThreadText: # How to sort civimobile event participant check-in list?
  
  (Asked by: username_0 on 2015-04-30)
  
  I will like the have the names of event participants listed alphabetically on the event check-in screen, how can i modify the civimobile extension (civimobile.participant\_checkin.html) to list names alphabetically?
  
  I have this code but it doesn't work,
  
  CRM.api('Participant','get', {"sequential": 1,"options": {"sort":"display\_name"},
  'version' :'3', 'sort\_name': q, 'event\_id': eventId, 'participant\_status\_id': {1:1,2:2,5:5},
  'return' : 'display\_name,participant\_status\_id', 'rowCount' : 500 },
  
  ```
      {
        success:function (data){
          if (data.count == 0) {
            cmd = null;
          }
          else {
  
  ```
  
  **Tags:** extension
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-04-30. Score: 1
  
  I think it makes sense as the default behaviour. Can you go to the github project and add an issue there to talk directly with the developers and consider proposing that as a PR? <https://github.com/webaccess/com.webaccessglobal.module.civimobile>
  
  The line you'll need to change is the api call, and add a "option.sort"="whatever is the field for the participant name" param (use the api explorer to find out the exact syntax and name of the field name)
  
  <https://github.com/webaccess/com.webaccessglobal.module.civimobile/blob/master/code/civimobile.participant_checkin.html#L35>
  
  > **Comments:**
  > **username_0**: This unable to get this working, get page not found sites/all/modules/civicrm//bower_components/lodash-compat/lodash.min.js when i add "options": {"sort":"display_name"} to the api call  
  > **username_0**: modifying line 35 CRM.api('Participant','get', to CRM.api('Participant','get', {"sequential": 1,"options": {"sort":"display_name"} works just fine for CiviCRM version 4.3  But when i do the same changes for CiviCRM 4.5.5 on line 35 of civimobile.participant_checkin.html for civimobile compatible version downloaded on github, i get page not found sites/all/modules/civicrm//bower_components/lodash-compat/lodash.min.js . Any idea how this sorting can be done in this version?  
  
  ---
  
  