def order_by_json_path(self, json_path, language_code=None, order='<STR_LIT>'):
language_code = (language_code<EOL>or self._language_code<EOL>or self.get_language_key(language_code))<EOL>json_path = '<STR_LIT>' % (language_code, json_path)<EOL>raw_sql_expression = RawSQL("<STR_LIT>", (json_path,))<EOL>if order == '<STR_LIT>':<EOL><INDENT>raw_sql_expression = raw_sql_expression.desc()<EOL><DEDENT>return self.order_by(raw_sql_expression)<EOL>
Orders a queryset by the value of the specified `json_path`.

More about the `#>>` operator and the `json_path` arg syntax:
https://www.postgresql.org/docs/current/static/functions-json.html

More about Raw SQL expressions:
https://docs.djangoproject.com/en/dev/ref/models/expressions/#raw-sql-expressions

Usage example:
    MyModel.objects.language('en_us').filter(is_active=True).order_by_json_path('title')