Skip to content

Commit 0b8c106

Browse files
committed
OpenQuestions: сортировать по убыванию
1 parent f037dd9 commit 0b8c106

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hwproj.front/src/components/Solutions/UnratedSolutionsAndOpenQuestions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ const UnratedSolutionsAndOpenQuestions: FC<IUnratedSolutionsProps> = (props) =>
253253
{`${openQuestions.length} ${Utils.pluralizeHelper(taskPlurals, openQuestions.length)} содержат вопросы от студентов`}
254254
</Typography>
255255
</div>
256-
<div>{openQuestions.map((taskQuestions, i) => (
256+
<div>{openQuestions.sort((a, b) => b.count - a.count).map((taskQuestions, i) => (
257257
<Grid item key={"question" + i}>
258258
<ListItem>
259259
<Grid container alignItems={"center"} spacing={1}>

0 commit comments

Comments
 (0)