Skip to content

Commit 3491995

Browse files
committed
Sort archived/not archived
1 parent 22bfab4 commit 3491995

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/lib/screens/session/pages/overview.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ class _OverviewScreenState extends State<OverviewScreen> {
122122
body: Container(
123123
padding: EdgeInsets.all(16),
124124
child: StreamBuilder(
125-
stream: Firestore.instance.collection(widget._debate.debateCode).snapshots(),
125+
stream: Firestore.instance
126+
.collection(widget._debate.debateCode)
127+
.orderBy('archived')
128+
.snapshots(),
126129
builder: (context, snapshot) {
127130
if (!snapshot.hasData) return Text('Loading...');
128131

0 commit comments

Comments
 (0)