lib/scss_lint/linter/property_sort_order.rb
# Compares two properties which can contain a vendor prefix. It allows for a
# sort order like:
#
#   p {
#     border: ...
#     -moz-border-radius: ...
#     -o-border-radius: ...
#     -webkit-border-radius: ...
#     border-radius: ...
#     color: ...
#   }
#
# ...where vendor-prefixed properties come before the standard property, and
# are ordered amongst themselves by vendor prefix.
Compares two properties which can contain a vendor prefix. It allows for a
sort order like.




Compares two properties which can contain a vendor prefix . It allows for a sort order like .
def compare_properties(a, b)
      if a[:property] == b[:property]
        compare_by_vendor(a, b)
      else
        if @preferred_order
          compare_by_order(a, b, @preferred_order)
        else
          a[:property] <=> b[:property]
        end
      end
    end
def compare_properties ( a , b ) if a [ :property ] == b [ :property ] compare_by_vendor ( a , b ) else if @preferred_order compare_by_order ( a , b , @preferred_order ) else a [ :property ] <=> b [ :property ] end end end
Compares two properties which can contain a vendor prefix.
Compares two properties which can contain a vendor prefix .
a
<not_specific>
b
<not_specific>