Skip to content
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.

🚀 add the ability to sort by translatable field #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ahmedsayedabdelsalam
Copy link
Collaborator

before PR
when chaning ->soratable() method with Translatable field
the query was
select * from table_name order field asc;

after PR
the query would be
select * from table_name order by json_unquote(json_extract(field, '$."ar"')) asc;

Screen Shot 2020-07-19 at 2 21 19 AM

Screen Shot 2020-07-19 at 2 24 03 AM

@ahmedsayedabdelsalam
Copy link
Collaborator Author

@mrmonat

any plans to merge this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant