+bool rowRLBT(const Rect &first, const Rect &second){
+ if (first.y()+first.h()==second.y()+second.h())
+ return first.x()+first.w()>second.x()+second.w();
+ return first.y()+first.h()>second.y()+second.h();
+}
+
+bool rowRLTB(const Rect &first, const Rect &second){
+ if (first.y()==second.y())
+ return first.x()+first.w()>second.x()+second.w();
+ return first.y()<second.y();
+}
+
+bool rowLRBT(const Rect &first, const Rect &second){
+ if (first.y()+first.h()==second.y()+second.h())
+ return first.x()<second.x();
+ return first.y()+first.h()>second.y()+second.h();
+}
+
+bool rowLRTB(const Rect &first, const Rect &second){
+ if (first.y()==second.y())
+ return first.x()<second.x();
+ return first.y()<second.y();
+}
+
+bool colLRTB(const Rect &first, const Rect &second){
+ if (first.x()==second.x())
+ return first.y()<second.y();
+ return first.x()<second.x();
+}
+
+bool colLRBT(const Rect &first, const Rect &second){
+ if (first.x()==second.x())
+ return first.y()+first.h()>second.y()+second.h();
+ return first.x()<second.x();
+}
+
+bool colRLTB(const Rect &first, const Rect &second){
+ if (first.x()+first.w()==second.x()+second.w())
+ return first.y()<second.y();
+ return first.x()+first.w()>second.x()+second.w();
+}
+
+bool colRLBT(const Rect &first, const Rect &second){
+ if (first.x()+first.w()==second.x()+second.w())
+ return first.y()+first.h()>second.y()+second.h();
+ return first.x()+first.w()>second.x()+second.w();
+}
+
+