File tree 2 files changed +14
-10
lines changed
lib/MediaWords/Controller/Api/V2/Topics
2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -80,11 +80,13 @@ sub _get_sort_clause
80
80
$sort_param ||= ' inlink' ;
81
81
82
82
my $sort_field_lookup = {
83
- inlink => ' mlc.media_inlink_count' ,
84
- bitly => ' mlc.bitly_click_count' ,
85
- social => ' mlc.bitly_click_count' ,
86
- facebook => ' mlc.facebook_share_count' ,
87
- twitter => ' mlc.simple_tweet_count'
83
+ inlink => ' mlc.media_inlink_count' ,
84
+ inlink_count => ' mlc.media_inlink_count' ,
85
+ bitly => ' mlc.bitly_click_count' ,
86
+ bitly_click_count => ' mlc.bitly_click_count' ,
87
+ social => ' mlc.bitly_click_count' ,
88
+ facebook => ' mlc.facebook_share_count' ,
89
+ twitter => ' mlc.simple_tweet_count'
88
90
};
89
91
90
92
my $sort_field = $sort_field_lookup -> { lc ( $sort_param ) }
Original file line number Diff line number Diff line change @@ -204,11 +204,13 @@ sub _get_sort_clause
204
204
$sort_param ||= ' inlink' ;
205
205
206
206
my $sort_field_lookup = {
207
- inlink => ' slc.media_inlink_count' ,
208
- bitly => ' slc.bitly_click_count' ,
209
- social => ' slc.bitly_click_count' ,
210
- facebook => ' slc.facebook_share_count' ,
211
- twitter => ' slc.simple_tweet_count'
207
+ inlink => ' slc.media_inlink_count' ,
208
+ inlink_count => ' slc.media_inlink_count' ,
209
+ bitly => ' slc.bitly_click_count' ,
210
+ bitly_click_count => ' slc.bitly_click_count' ,
211
+ social => ' slc.bitly_click_count' ,
212
+ facebook => ' slc.facebook_share_count' ,
213
+ twitter => ' slc.simple_tweet_count'
212
214
};
213
215
214
216
my $sort_field = $sort_field_lookup -> { lc ( $sort_param ) }
You can’t perform that action at this time.
0 commit comments