- [](const shared_ptr<RowItem> &a, const shared_ptr<RowItem> &b) {
- return a->point(QRect()).y() < b->point(QRect()).y(); });
+ [](const shared_ptr<ViewItem> &a, const shared_ptr<ViewItem> &b) {
+ return a->drag_point(QRect()).y() < b->drag_point(QRect()).y(); });