Skip to content

Instantly share code, notes, and snippets.

@tobynet
Forked from hitode909/sort_jp
Created December 25, 2011 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobynet/1519390 to your computer and use it in GitHub Desktop.
Save tobynet/1519390 to your computer and use it in GitHub Desktop.
#! /usr/bin/env ruby
puts ARGF.read.split(/\b+/).map{|x|x.split(//).sort.join }.join
@tobynet
Copy link
Author

tobynet commented Dec 25, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment