public function getIndex()
 {
     $products = Product::orderBy('category_id')->orderBy('name')->paginate(20);
     return View::make('redminportal::products/view')->with('products', $products);
 }
 public function testOrderByThenPaginate()
 {
     $products = Product::orderBy('updated_at')->paginate(20);
 }