View Single Post
Old 02-05-2025, 04:33 AM   #59
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 4,034
Karma: 18026955
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
Quote:
Originally Posted by Guido View Post
I've tried adding a filter option for internal storage, but it's giving me issues that I need to sort out. For instance, if I add a filter option for '4 GB', selecting that option will also show e-readers with '64 GB' as that text also contains '4 GB'.
You can add hidden fields to sort by. This is an example which works in MediaWiki (although your JavaScript probably does something similar):
Code:
<td data-sort-value="0.0">Free</td>

<td data-sort-value="1.0">$1/mo</td>

<td data-sort-value="1.25">$30/2yr</td>
This way you can sort by cost/month even if the price is per year, per half year, per month.
For multiple values you could make it a bitmap, although you would probably have to do some coding yourself.
Renate is offline   Reply With Quote