import laravelErrorsToFormik from '../../helpers/laravelErrorsToFormik';
import { withUser } from '../../helpers/UserContext';
+const channelCompare = (a, b) => a.channel.title.localeCompare(b.channel.title);
+
const RestreamAddForm = ({
episode,
errors,
value={values.channel_id || 0}
>
<option disabled value={0}>{t('general.pleaseSelect')}</option>
- {((user && user.channel_crews) || []).map(c =>
+ {((user && user.channel_crews) || []).sort(channelCompare).map(c =>
<option key={c.id} value={c.channel_id}>
{c.channel.title}
</option>