jeremykenedy / laravel-users

A Users Management Package that includes all necessary routes, views, models, and controllers for a user management dashboard and associated pages for managing Laravels built in user scaffolding. Built for Laravel 5.2, 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 6.0, 7.0 and 8.0.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add sorting feature

ronlinet opened this issue · comments

I have tried to sort the user list through LengthAwarePaginator but it doesn't work

   $data = [
            'users'             => $users->setCollection(
                collect(
                    collect($users->items())->sortBy('email')
                )->values()
            ),
            'pagintaionEnabled' => $pagintaionEnabled
        ];

This seems more like a general question than an issue. This isn't even in this codebase.