[Swift]UIView Extension #4

UIView Extension #4

var subviewsSortByTop:[AnyObject]{
    get{
        var w:[AnyObject] = self.getSubviews()
        w.sort { (v1:AnyObject, v2:AnyObject) -> Bool in
            return v1.origin.y < v2.origin.y
        }
        return w
    }
}