Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Is there something worng with the sort order?


Guest

Recommended Posts

If I understand it correctly, the sort order for payment methods goes from lowest to highest. For example with 3 payment methods A,B & C set to the following sort order A(0), B(1), C(2). The payment method A would be at the top as follows:

 

A

B

C

 

But that is not the case. As a matter of fact if any of them are set to 0 the sort order just doesn't work. However if you set the sort order A(1), B(2), C(3) with nothing set as 0, you will get the follow sort order:

 

C

B

A

 

The highest number always appears on top! Has anyone else noticed this?

This make is impossible to code it for example so that the top item is always selected because the $i for the top item will not always be 0.

Link to comment
Share on other sites

Nevermind I was wrong, All I know for sure is if you set any of the options to 0 the sort order doesn't work. However as long as the isn't anything set to 0 it does appear to be sorting lowest on top. Very strange.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...