How to change pagination order and replies limit per page in discussion topics (elgg 1.8)

By Amry87

Hi, 

I am trying to get Discussion topics, and individual topics ordered from most recent to oldest. 

Discussion/all is showing topics ordered correctly from most recent to oldest

But when one goes into individual topics the replies are ordered improperly:

 The first page shows: 

A reply: 17 days ago

B reply: 20 days ago 

...

it is ordered correctly. 

But when one goes to next page (when there are too many replies):

C reply : 4 days ago

D reply: 6 days ago

It is ordered correctly within page, but not within whole topic page. 

When there is no pagination (when there are less replies than limit), they are ordered properly. 

discussion_handle_all_page() function reacts accordingly when I change order_by or limit

but discussion_handle_list_page() does not react at all. 

$options = array(
        'type' => 'object',
        'subtype' => 'groupforumtopic',
        'limit' => 20,
        'order_by' => 'e.last_action desc',
        'container_guid' => $guid,
        'full_view' => false,
    );

This is discussion_handle_list_page() options, but the page is showing 25 replies. 

Is there any other functions controlling it? 

How can I fix it?

Thanks