Sunday, August 25, 2019

Re: Rest API

just sort it like this:

li = ['the', 'thea', 'thecba', 'thecab', 'thebca', 'theabc']
li.sort()
['the', 'thea', 'theabc', 'thebca', 'thecab', 'thecba']

On Sun, Aug 25, 2019 at 12:57 PM Soumen Khatua <soumenkhatua258@gmail.com> wrote:
Hi Folks,

I already implemented serach query parameter in my Django Rest API app,But I anto to show something like exact query parameter should be appear first then all the should be on the sequence of character like:

?search=the
the
thea
theabc
thebac
thebca
thecab
thecba

Thank you in advance

Regards,
Soumen

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPUw6WbHtrjrEM8WoQ%3D-KZKcuv5YynkbFv358ZZrQLTcP9pCKQ%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACNsr29Gjn2WQ3NUbuTYYE1%3D95oytvYL9hjNtKTqHu9Sm0v8YA%40mail.gmail.com.

No comments:

Post a Comment