MethodError: no method matching isless(::Int64, ::Array{UnitRange{Int64},1})

Sp is a set, Sp = [s[4]]

Defined amongst the sets
Point 2 noted