We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27672
    • 168 Posts
    [!WebLoginPE? &type=`users` &usersList=`Business Office:eFormDirectory_BusinessOfficeOuterTpl:eFormDirectory_BusinessOfficeInnerTpl:sortorder:ASC:webgroup(Business Office WUG),sortorder()`!]

    using this call, which sorts by a custom field called `sortorder` puts the entries in alphabetical order, like: 1,10,11,12,13,14,15,16,17,18,19,2,20,21,22,3,4,5,6,7,8,9

    instead of: 1,2,3,4,5,6,etc

    the sort order is, from a logic standpoint, arbitrary, so i cannot sort by name, or date added or anything like that, which is why i put in the `sortorder` field in the first place - the users need to be sorted by "human logic".

    also, i put "sortorder()" at the end, to only include people who had a `sortorder` value set because the "sortorder:ASC" throws an error if not every user has an entry in the webloginpe extended attributes table. is there any way to get around that in the call (ie without going into the code and changing queries)?