0

I want to sort the result of a while loop alphabetically, here is the code. I am new at this and I tried everything I can think of, but I am still clueless.
Thanks for anyone who could help.

<?php while (loop_collections()): ?>
			<div class="collection">
			    
            	<h2><?php echo link_to_collection(); ?></h2>
	
            	<div class="element">
                <h3>Description</h3>
            	<div class="element-text"><?php echo nls2p(collection('Description', array('snippet'=>150))); ?></div>
	            </div>
	            
            	#<div class="element">
                #<h3>Collector(s)</h3>
                #<?php if(collection_has_collectors()): ?>
            	#    <div class="element-text">
                #    <p><?php echo collection('Collectors', array('delimiter'=>', ')); ?></p>
            	#    </div>
            	#<?php endif; ?>
            	#</div>
	
            	<p class="view-items-link"><?php echo link_to_browse_items('View the items in ' . collection('Name'), array('collection' => collection('id'))); ?></p>
            	
            <?php echo plugin_append_to_collections_browse_each(); ?>
            
            </div><!-- end class="collection" -->
		<?php endwhile; ?>
2
Contributors
1
Reply
4
Views
8 Years
Discussion Span
Last Post by TommyBs
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.