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; ?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.