Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Images aren't sorted alphabetically


Guest

Recommended Posts

If I try to insert an image using the WYSYWIG editor, when inserting the image, the Image Manager opens and I can either search for the image, or upload an image, however in either case the images in the Images Root directory are not sorted in alphabetical order. This can be a pain when there are more than 900 product images. -- Is there some code change which can be made which will sort the images in alphabetical / numerical order? Otherwise, it's impossible to find images and takes forever. Any suggestions would be gratefully appreciated.

Link to comment
Share on other sites

in lister.php

 

find

 

$result[] = $file;

 

Add this just under it to sort it

 

natsort($result);

 

There are two places to change.....

 

Thanks very much. It worked like a charm. Help like this is what I love about this community. I can't tell you how much time it will save me as well as prevent me from going nuts looking for images.

best,

M

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...