Ok. In the DB we store a Low and a High trivial.
The issue with sorting is I must chose ONE of these to sort by. MySQL simply does not have the power for a sort more complex than that. I cannot say "in this case sort by low in this case sort by high" I must choose ONE to sort from (I can then sub sort off another... but the main sort is already done...)
I know that NONE of these are ideal... Ideal is...
20 <50 75 70<=x<80 >85 90
but I cannot get that.
Now. If someone can come up with a math formula so that ANY combination of low and high trivials can be sorted that way, then I can probably do it... but it better be a single formula. No "if" or other conditional in it.
So I need to vote on what order you would like to see things in.
If I do NOT see at least 100 votes on this poll. Then you are getting what I have made, and ANY posts complaining about the current sort order will get summarily DELETED with no consideration of your post. You are now being given your chance to vote. Do it or deal with it.
<hr>
For those more technical minded...
the trivials are stored in TWO fields... so the list is like this:
[code:1]low high displayed trivial
20 20 20
? 50 <50
75 75 75
70 80 70<=x<80
85 ? >85
90 90 90
[/code:1]
rember only the low and high column is stored.
It looks like some code has been given to me that will be BETTER. Being a computer, it will not be perfect... but it should be ALOT closer to what we desire...
Thank you for all of the sugestions.
The issue with sorting is I must chose ONE of these to sort by. MySQL simply does not have the power for a sort more complex than that. I cannot say "in this case sort by low in this case sort by high" I must choose ONE to sort from (I can then sub sort off another... but the main sort is already done...)
I know that NONE of these are ideal... Ideal is...
20 <50 75 70<=x<80 >85 90
but I cannot get that.
Now. If someone can come up with a math formula so that ANY combination of low and high trivials can be sorted that way, then I can probably do it... but it better be a single formula. No "if" or other conditional in it.
So I need to vote on what order you would like to see things in.
If I do NOT see at least 100 votes on this poll. Then you are getting what I have made, and ANY posts complaining about the current sort order will get summarily DELETED with no consideration of your post. You are now being given your chance to vote. Do it or deal with it.
<hr>
For those more technical minded...
the trivials are stored in TWO fields... so the list is like this:
[code:1]low high displayed trivial
20 20 20
? 50 <50
75 75 75
70 80 70<=x<80
85 ? >85
90 90 90
[/code:1]
rember only the low and high column is stored.
It looks like some code has been given to me that will be BETTER. Being a computer, it will not be perfect... but it should be ALOT closer to what we desire...
Thank you for all of the sugestions.
Comment