home forums resources search newsjoinmembers: 5931
Main Network: Joomla Wordpress Drupal Drupal.se Fireorb Flash Java PHP Ruby Windows Linux
 videos
 articles
 blogs
 comments
 downloads
sitemap
Hiveminds | Wed, 2006-09-27 22:50  tags:

Installing Running and programming with Ruby on Rails


<?php
# ---
  # Sorting
  # ---
def <=>(other)
    
regex = /^[d]+/
    if 
self.title =~ regex
      our_num 
Regexp.last_match[0].to_i
      
if other.title =~ regex
        other_num 
Regexp.last_match[0].to_i
        
return our_num <=> other_num
      end
    end
    self
.title <=> other.title
  end
?>

<?php
phpinfo
();
?>

printer-friendly version

Hiveminds's picture
This article brought to you by the Hiveminds Magazine - Staff. Contact us if you want to post an article or announcement anonymously
 
 

Newsletter

Get updates on Hiveminds services, articles and downloads by signing up for the newsletter.

Editor's choice

Some of the better articles, stories and tutorials found at Hiveminds.

Find more

Find more of Hiveminds articles, stories, tutorials and user comments by searching.




Picked links

Hand picked websites and articles from around the web that provide quality reading.

page top