Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
b = sorted(items) == items
b = items.each_cons(2).all?{ _1 <= _2 }
b = items.each_cons(2).all?{|a,b| a <= b }
let b = items.is_sorted();