From e8e055a676fbc74bdb13e605b84de5e80b5c2714 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Sun, 26 Jun 2022 03:44:07 +0100 Subject: [PATCH] Case insensitive sort for subscriptions. (#292) --- src/main/java/me/kavin/piped/utils/ResponseHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/kavin/piped/utils/ResponseHelper.java b/src/main/java/me/kavin/piped/utils/ResponseHelper.java index 7bdf47c..af82291 100644 --- a/src/main/java/me/kavin/piped/utils/ResponseHelper.java +++ b/src/main/java/me/kavin/piped/utils/ResponseHelper.java @@ -980,7 +980,7 @@ public class ResponseHelper { List subscriptionItems = channels .stream().parallel() - .sorted(Comparator.comparing(me.kavin.piped.utils.obj.db.Channel::getUploader)) + .sorted(Comparator.comparing(me.kavin.piped.utils.obj.db.Channel::getUploader, String.CASE_INSENSITIVE_ORDER)) .map(channel -> new SubscriptionChannel("/channel/" + channel.getUploaderId(), channel.getUploader(), rewriteURL(channel.getUploaderAvatar()), channel.isVerified())) .collect(Collectors.toUnmodifiableList());