Version 3.1 is shown below version 3.03 in addons section. Some Bug I think

This discussion is related to the Nebula addon.
aeryaery Gtricks Forum in 2.2 :) ✭✭✭

Comments

  • The PHP function in the VanillaAddons site that is providing the sort order is version_compare. This function splits on periods (and underscores and hyphens and plus signs) and then compares each part from left to right. So from your example:
    3 == 3
    1 < 03

    In your mind, it may seem like 3.03 is equivalent to 3.0.3 and 3.1 is equivalent to 3.1.0 but the former scheme is non-standard and ambiguous whereas the latter is well-understood and common.

    See Also: http://semver.org/

  • aeryaery Gtricks Forum in 2.2 :) ✭✭✭

    Thanks for the example. Unfortunately, I still did not get your example.

    422
Sign In or Register to comment.