<PRIVATE
-:: (bubble-sort!) ( seq quot: ( obj1 obj2 -- <=> ) -- )
+:: (bubble-sort-with!) ( seq quot: ( obj1 obj2 -- <=> ) -- )
seq length 1 - [
f over [0..b) [| i |
i i 1 + [ seq nth-unsafe ] bi@ 2dup quot call +gt+ =
PRIVATE>
-: bubble-sort! ( seq quot: ( obj1 obj2 -- <=> ) -- )
- over length 2 < [ 2drop ] [ (bubble-sort!) ] if ; inline
+: bubble-sort-with! ( seq quot: ( obj1 obj2 -- <=> ) -- )
+ over length 2 < [ 2drop ] [ (bubble-sort-with!) ] if ; inline
-: natural-bubble-sort! ( seq -- )
- [ <=> ] bubble-sort! ;
+: bubble-sort! ( seq -- ) [ <=> ] bubble-sort-with! ;