home resources search newsjoinmembers: 6959
PHP Flash Java Ruby Windows Linux
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
Thoughtbox - So what did you think?



 
 videos
 articles
 blogs
 comments
 downloads
sitemap

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