clintropolis commented on a change in pull request #6745: add version comparator for StringComparator URL: https://github.com/apache/incubator-druid/pull/6745#discussion_r242733060
########## File path: docs/content/querying/sorting-orders.md ########## @@ -47,3 +47,6 @@ When comparing two unparseable values (e.g., "hello" and "world"), this ordering ## Strlen Sorts values by the their string lengths. When there is a tie, this comparator falls back to using the String compareTo method. + +## Version +Sorts values as versions, e.g.: "10.0 sorts after 9.0" Review comment: Are there any docs that could be linked to that describe the behavior of this sorting? It might help differentiate between this and `alphanumeric`, which also would sort this example correctly, but fails to order for example `1.0.0-SNAPSHOT` before `1.0.0`. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
