X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bmy-library%2Fmy-videos%2Fmy-videos.component.ts;h=57b8bdf7de26518bb0671d08456dfff7e513ada6;hb=HEAD;hp=b618b3f8823c3e1d79b82507459a38eec80d639b;hpb=8cdb6b6276164bc7b1a465b7f3e4634c58decb8d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+my-library/my-videos/my-videos.component.ts b/client/src/app/+my-library/my-videos/my-videos.component.ts index b618b3f88..57b8bdf7d 100644 --- a/client/src/app/+my-library/my-videos/my-videos.component.ts +++ b/client/src/app/+my-library/my-videos/my-videos.component.ts @@ -105,12 +105,14 @@ export class MyVideosComponent implements OnInit, DisableForReuseHook { this.user = this.authService.getUser() this.userChannels = this.user.videoChannels - const channelFilters = this.userChannels.map(c => { - return { - value: 'channel:' + c.name, - label: c.displayName - } - }) + const channelFilters = [ ...this.userChannels ] + .sort((a, b) => a.displayName.localeCompare(b.displayName)) + .map(c => { + return { + value: 'channel:' + c.name, + label: c.displayName + } + }) this.inputFilters = [ {