To make the media collection sort alphabetically on the filename, make the following change:
/includes/modules/media_manager.php
around lines 27-29 you'll see the following code. Make the change shown in red (adding the ORDER BY clause):```
} else {
$zv_clips_query = "select * from " . TABLE_MEDIA_CLIPS . "
where media_id = '" . (int)$zq_media_manager->fields['media_id'] . "'[B] order by clip_filename[/B]";
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.