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

馃殌 add the ability to sort by translatable field - #45

Open
ahmedsayedabdelsalam wants to merge 1 commit into
mrmonat:masterfrom
ahmedsayedabdelsalam:master
Open

ahmedsayedabdelsalam wants to merge 1 commit into
mrmonat:masterfrom
ahmedsayedabdelsalam:master

Conversation

@ahmedsayedabdelsalam

Copy link
Copy Markdown
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
Copy Markdown
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