Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

array sort_by nil ruby

starred.sort_by { |a| [a ? 1 : 0, a] }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #array #nil #ruby
ADD COMMENT
Topic
Name
4+3 =