Add a helper function to combine the two steps of filenames sorting

(splitting and comparing)
This commit is contained in:
Alex Ling 2020-03-12 23:52:49 +00:00
parent c4ffb5cd59
commit 01216d806c

View File

@ -65,3 +65,7 @@ def compare_alphanumerically(c, d)
end
is_c_bigger
end
def compare_alphanumerically(a : String, b : String)
compare_alphanumerically split_by_alphanumeric(a), split_by_alphanumeric(b)
end