timskorch Posted January 6, 2007 Share Posted January 6, 2007 I have products whose names begin with numbers but a product beginning with 10 is listed before product beginning with 1-9 Like this: 10 product 11 product 2 product 3 product 4 product 5 product 6 product 7 product 8 product 9 product Is there any way to resolve this? Link to comment Share on other sites More sharing options...
wheeloftime Posted January 7, 2007 Share Posted January 7, 2007 I have products whose names begin with numbers but a product beginning with 10 is listed before product beginning with 1-9 Like this: 10 product 11 product 2 product 3 product 4 product 5 product 6 product 7 product 8 product 9 product Is there any way to resolve this? Best thing is not to rely on this kind of manipulation of the product names because this is a string field and therefore not sorted logically like numerical fields. Take a look at this contribution which gives a sort field to the individual products. HTH Link to comment Share on other sites More sharing options...
timskorch Posted January 7, 2007 Author Share Posted January 7, 2007 Thank you I'll check out the contribution. I guess I should have explained that the number is part of the item name and really what defines the item, the rest of the name is pretty much the same between items per category so I'm pretty much locked in to this "kind of manipulation" by my products very nature. Link to comment Share on other sites More sharing options...
timskorch Posted January 7, 2007 Author Share Posted January 7, 2007 I couln't get the contribution installed with all of the other contributions I already have installed so if I can come up with something in PHP I'll post it here. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.