Skip to content

Cannot change ordering of query #2385

@nicolasvahidzein

Description

@nicolasvahidzein

Hello I cannot change the order in which my results are ordered and this is very important. changes asc to desc and vice versa does not affect the query at all.

		//grab all of the user's orders
		$tempOrderslist = Orders::query()
		->where('userUID', '=', $user->UID)
		->orderBy('orderDate', 'asc');//'desc' or 'asc' THIS CHANGES NOTHING
		->take(40)
		->get();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions