Re: sorting issue

2021-09-13 Thread dupakoor kannan
Thank you Geoff for the reply. >>>How about creating a function inside protein, e.g. protein.href, that returns the proper URL? Let me try this method also. >>>(If that trailing star is necessary, you could also have a function to generate that, e.g. protein.starname.) Yes. The trailing star is n

Re: sorting issue

2021-09-12 Thread Geoff Kuenning
How about creating a function inside protein, e.g. protein.href, that returns the proper URL? Then you could write {{ protein.name }} in the template. (If that trailing star is necessary, you could also have a function to generate that, e.g. protein.starname.) On Saturday, September 11, 2021

RE: sorting issue

2021-09-11 Thread dupakoor kannan
Hello everyone, I have a model that contains alphanumeric protein names e.g. ('Ypp1Aa100"). I have to properly sort it when returning the contents to the html. I found some fantastic sorting examples from this blog post https://blog.codinghorror.com/sorting-for-humans-natural-sort-order/. I have a