Array::sort, sort_custom and invert now return reference to Array to allow chaining of operations
This commit is contained in:
@ -68,9 +68,9 @@ public:
|
||||
Variant front() const;
|
||||
Variant back() const;
|
||||
|
||||
void sort();
|
||||
void sort_custom(Object *p_obj, const StringName &p_function);
|
||||
void invert();
|
||||
Array &sort();
|
||||
Array &sort_custom(Object *p_obj, const StringName &p_function);
|
||||
Array &invert();
|
||||
|
||||
int find(const Variant &p_value, int p_from = 0) const;
|
||||
int rfind(const Variant &p_value, int p_from = -1) const;
|
||||
|
||||
Reference in New Issue
Block a user