This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

chris10207
chris10207

Hi did you guys find a way to sort the data in a recordfinder ? what i see in the debugbar, is taht it always sort DESC on the 1st column displayed.

thanks for any insights

herzgarlan22551
herzgarlan22551

Hi Chris,

You can specify the order in your relationship inside your Model.

public $belongsTo = [ 'user' => ['Rainlab\User\Models\User' , 'order' => 'email asc', 'conditions' => 'is_activated = 1'] ];

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.