diff --git a/api/str.hpp b/api/str.hpp index e7687ab8e..590df040e 100644 --- a/api/str.hpp +++ b/api/str.hpp @@ -256,7 +256,7 @@ namespace jule jule::Slice strr = str.operator jule::Slice(); jule::Int n = thisr.len() > strr.len() ? strr.len() : thisr.len(); for (jule::Int i = 0; i < n; ++i) - if (thisr.__at(i) > strr.__at(i)) + if (thisr.__at(i) != strr.__at(i)) return thisr.__at(i) < strr.__at(i); return thisr.len() < strr.len(); }