I’m using an ecommerce system and I’m trying to modify how products are sorted.
My question is, how does mysql deal with sorting when two items have the same value?
e.g.
Products are sorted by a position that is assigned to them (so position 1 would display at the top).
However, if I have 3 products assigned to position 1 and 2 products assigned to position 2, how are the 3 products assigned to position 1 sorted by default? Would this be specific to the ecommerce system or is there a mysql default, such as ID?
I hope this is clear enough, I’ve not been able to really find any good answers by Googling.
You can specify additional fields on which to order by, the earliest ones take precedence but latter ones decide how to break ties. For example: