Sort series by title in task name
This commit is contained in:
parent
e14568adef
commit
172b1a82d1
|
@ -23,13 +23,16 @@ export default function QueuedTaskRowNameCell(
|
||||||
}
|
}
|
||||||
|
|
||||||
const series = useSelector(createMultiSeriesSelector(seriesIds));
|
const series = useSelector(createMultiSeriesSelector(seriesIds));
|
||||||
|
const sortedSeries = series.sort((a, b) =>
|
||||||
|
a.sortTitle.localeCompare(b.sortTitle)
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TableRowCell>
|
<TableRowCell>
|
||||||
<span className={styles.commandName}>
|
<span className={styles.commandName}>
|
||||||
{commandName}
|
{commandName}
|
||||||
{series.length ? (
|
{sortedSeries.length ? (
|
||||||
<span> - {series.map((s) => s.title).join(', ')}</span>
|
<span> - {sortedSeries.map((s) => s.title).join(', ')}</span>
|
||||||
) : null}
|
) : null}
|
||||||
{body.seasonNumber ? (
|
{body.seasonNumber ? (
|
||||||
<span>
|
<span>
|
||||||
|
|
Loading…
Reference in New Issue