projects
/
WP-Plugins
/
glm-member-db.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e37fef
)
Pushing changes for filter for the sort order.
author
Steve Sutton
<steve@gaslightmedia.com>
Thu, 13 Apr 2017 17:26:24 +0000
(13:26 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Thu, 13 Apr 2017 17:26:24 +0000
(13:26 -0400)
Custom field plugin to tie into the sort order.
models/front/members/list.php
patch
|
blob
|
history
diff --git
a/models/front/members/list.php
b/models/front/members/list.php
index
39a3cdf
..
2019601
100644
(file)
--- a/
models/front/members/list.php
+++ b/
models/front/members/list.php
@@
-740,7
+740,8
@@
class GlmMembersFront_members_list extends GlmDataMemberInfo
// Default is alpha-numeric list order
default:
case $this->config['sort_order_numb']['Alpha-Numeric']:
- ${$resultParam} = $this->getList($where.$alphaWhere, 'member_name', true, 'id', $start, $limit);
+ $sortOrder = apply_filters( 'glm-member-db-front-search-query-orderby', 'member_name' );
+ ${$resultParam} = $this->getList($where.$alphaWhere, $sortOrder, true, 'id', $start, $limit);
break;
}