Is there an existing issue for this? (Please read the description)
[X] I have searched the existing issues
Current Behavior
Sort by newest additon as well as oldest addition features seem to be broken ( it doesnt do the sorting right - compared with spotify app). Sort by newest addition doesnt sort correctly.
Expected Behavior
It should sort by newest addition date but it isnt. Im on latest spotube version both on android and desktop
Steps to reproduce
(Open Any playlist) >(sort by tracks)>(by newest addition)
Logs
Logs
```
tform_dispatcher.dart:442)
#25 _dispatchPointerDataPacket (dart:ui/hooks.dart:262)
----------------------------------------
[2024-10-29 13:59:53.998902]---------------------
GoError: There is no GoRouterState above the current context. This method should only be called under the sub tree of a RouteBase.builder.
#0 GoRouterState.of (package:go_router/src/state.dart:124)
#1 ServiceUtils.navigate (package:spotube/utils/service_utils.dart:276)
#2 LinkText.build. (package:spotube/components/links/link_text.dart:35)
#3 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:351)
#4 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:656)
#5 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:313)
#6 BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:246)
#7 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:703)
#8 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:98)
#9 PointerRouter._dispatchEventToRoutes. (package:flutter/src/gestures/pointer_router.dart:143)
#10 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:633)
#11 PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:141)
#12 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:127)
#13 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:501)
#14 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:481)
#15 RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:450)
#16 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:426)
#17 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:389)
#18 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:336)
#19 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:305)
#20 _rootRunUnary (dart:async/zone.dart:1415)
#21 _CustomZone.runUnary (dart:async/zone.dart:1308)
#22 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1217)
#23 _invoke1 (dart:ui/hooks.dart:330)
#24 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:442)
#25 _dispatchPointerDataPacket (dart:ui/hooks.dart:262)
----------------------------------------
[2024-10-29 13:59:54.705314]---------------------
GoError: There is no GoRouterState above the current context. This method should only be called under the sub tree of a RouteBase.builder.
#0 GoRouterState.of (package:go_router/src/state.dart:124)
#1 ServiceUtils.pushNamed (package:spotube/utils/service_utils.dart:315)
#2 ArtistLink.build... (package:spotube/components/links/artist_link.dart:52)
#3 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:351)
#4 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:656)
#5 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:313)
#6 BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:246)
#7 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:703)
#8 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:98)
#9 PointerRouter._dispatchEventToRoutes. (package:flutter/src/gestures/pointer_router.dart:143)
#10 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:633)
#11 PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:141)
#12 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:127)
#13 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:501)
#14 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:481)
#15 RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:450)
#16 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:426)
#17 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:389)
#18 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:336)
#19 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:305)
#20 _rootRunUnary (dart:async/zone.dart:1415)
#21 _CustomZone.runUnary (dart:async/zone.dart:1308)
#22 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1217)
#23 _invoke1 (dart:ui/hooks.dart:330)
#24 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:442)
#25 _dispatchPointerDataPacket (dart:ui/hooks.dart:262)
----------------------------------------
[2024-10-29 13:59:57.595389]---------------------
GoError: There is no GoRouterState above the current context. This method should only be called under the sub tree of a RouteBase.builder.
#0 GoRouterState.of (package:go_router/src/state.dart:124)
#1 ServiceUtils.navigate (package:spotube/utils/service_utils.dart:276)
#2 LinkText.build. (package:spotube/components/links/link_text.dart:35)
#3 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:351)
#4 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:656)
#5 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:313)
#6 BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:246)
#7 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:703)
#8 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:98)
#9 PointerRouter._dispatchEventToRoutes. (package:flutter/src/gestures/pointer_router.dart:143)
#10 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:633)
#11 PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:141)
#12 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:127)
#13 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:501)
#14 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:481)
#15 RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:450)
#16 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:426)
#17 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:389)
#18 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:336)
#19 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:305)
#20 _rootRunUnary (dart:async/zone.dart:1415)
#21 _CustomZone.runUnary (dart:async/zone.dart:1308)
#22 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1217)
#23 _invoke1 (dart:ui/hooks.dart:330)
#24 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:442)
#25 _dispatchPointerDataPacket (dart:ui/hooks.dart:262)
----------------------------------------
[2024-10-29 14:47:59.783492]---------------------
Error Code: 400
Bad request.
#0 SpotifyApiBase.handleResponseWithBody (package:spotify/src/spotify_base.dart:282)
#1 SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:256)
#2 SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)
#3 Me.checkFollowing (package:spotify/src/endpoints/me.dart:61)
#4 albumsIsSavedProvider.. (package:spotube/provider/spotify/album/is_saved.dart:7)
#5 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:348)
----------------------------------------
[2024-10-29 15:08:02.955020]---------------------
GoError: There is no GoRouterState above the current context. This method should only be called under the sub tree of a RouteBase.builder.
#0 GoRouterState.of (package:go_router/src/state.dart:124)
#1 ServiceUtils.navigate (package:spotube/utils/service_utils.dart:276)
#2 LinkText.build. (package:spotube/components/links/link_text.dart:35)
#3 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:351)
#4 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:656)
#5 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:313)
#6 BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:246)
#7 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:703)
#8 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:98)
#9 PointerRouter._dispatchEventToRoutes. (package:flutter/src/gestures/pointer_router.dart:143)
#10 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:633)
#11 PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:141)
#12 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:127)
#13 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:501)
#14 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:481)
#15 RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:450)
#16 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:426)
#17 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:389)
#18 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:336)
#19 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:305)
#20 _rootRunUnary (dart:async/zone.dart:1415)
#21 _CustomZone.runUnary (dart:async/zone.dart:1308)
#22 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1217)
#23 _invoke1 (dart:ui/hooks.dart:330)
#24 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:442)
#25 _dispatchPointerDataPacket (dart:ui/hooks.dart:262)
----------------------------------------
[2024-10-29 19:37:37.858145]---------------------
OAuth authorization error (invalid_token): The access token expired.
#0 Client.send (package:oauth2/src/client.dart:134)
#1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93)
#2 SpotifyApiBase._getImpl. (package:spotify/src/spotify_base.dart:211)
#3 SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:247)
#4 SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)
#5 Pages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:253)
#6 SinglePages.stream.handlePageAndGetNext (package:spotify/src/endpoints/endpoint_paging.dart:187)
----------------------------------------
-----
[2024-10-29 19:37:38.030203]---------------------
OAuth authorization error (invalid_token): The access token expired.
#0 Client.send (package:oauth2/src/client.dart:134)
#1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93)
#2 SpotifyApiBase._getImpl. (package:spotify/src/spotify_base.dart:211)
#3 SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:247)
#4 SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)
#5 Pages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:253)
#6 SinglePages.stream.handlePageAndGetNext (package:spotify/src/endpoints/endpoint_paging.dart:187)
----------------------------------------
[2024-10-29 21:01:08.442384]---------------------
OAuth authorization error (invalid_token): The access token expired.
#0 Client.send (package:oauth2/src/client.dart:134)
#1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93)
#2 SpotifyApiBase._getImpl. (package:spotify/src/spotify_base.dart:211)
#3 SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:247)
#4 SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)
#5 Pages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:253)
#6 SinglePages.stream.handlePageAndGetNext (package:spotify/src/endpoints/endpoint_paging.dart:187)
----------------------------------------
--------------------
[2024-10-29 21:01:08.446493]---------------------
OAuth authorization error (invalid_token): The access token expired.
#0 Client.send (package:oauth2/src/client.dart:134)
#1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93)
#2 SpotifyApiBase._getImpl. (package:spotify/src/spotify_base.dart:211)
#3 SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:247)
#4 SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)
#5 Pages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:253)
#6 AlbumReleasesNotifier.fetch (package:spotube/provider/spotify/album/releases.dart:35)
#7 AlbumReleasesNotifier.build (package:spotube/provider/spotify/album/releases.dart:50)
#8 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:348)
----------------------------------------
[2024-10-29 21:01:08.481908]---------------------
OAuth authorization error (invalid_token): The access token expired.
#0 Client.send (package:oauth2/src/client.dart:134)
#1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93)
#2 SpotifyApiBase._getImpl. (package:spotify/src/spotify_base.dart:211)
#3 SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:247)
#4 SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)
#5 Pages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:253)
#6 FeaturedPlaylistsNotifier.fetch (package:spotube/provider/spotify/playlist/featured.dart:33)
#7 FeaturedPlaylistsNotifier.build (package:spotube/provider/spotify/playlist/featured.dart:44)
#8 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:348)
----------------------------------------
[2024-10-29 21:01:08.482954]---------------------
DioException [bad response]: This exception was thrown because the response has a status code of 401 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 401 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.
#0 DioMixin.fetch (package:dio/src/dio_mixin.dart:509)
#1 CustomSpotifyEndpoints.getHomeFeed (package:spotube/services/custom_spotify_endpoints/spotify_endpoints.dart:131)
#2 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:348)
----------------------------------------
[2024-11-02 14:23:04.811207]---------------------
OAuth authorization error (invalid_token): The access token expired.
#0 Client.send (package:oauth2/src/client.dart:134)
#1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93)
#2 SpotifyApiBase._getImpl. (package:spotify/src/spotify_base.dart:211)
#3 SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:247)
#4 SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)
#5 CursorPages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:292)
#6 SinglePages.stream.handlePageAndGetNext (package:spotify/src/endpoints/endpoint_paging.dart:187)
----------------------------------------
[2024-11-02 14:23:04.836883]---------------------
OAuth authorization error (invalid_token): The access token expired.
#0 Client.send (package:oauth2/src/client.dart:134)
#1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93)
#2 SpotifyApiBase._getImpl. (package:spotify/src/spotify_base.dart:211)
#3 SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:247)
#4 SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)
#5 Pages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:253)
#6 SinglePages.stream.handlePageAndGetNext (package:spotify/src/endpoints/endpoint_paging.dart:187)
----------------------------------------
[2024-11-02 14:23:04.993795]---------------------
OAuth authorization error (invalid_token): The access token expired.
#0 Client.send (package:oauth2/src/client.dart:134)
#1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93)
#2 SpotifyApiBase._getImpl. (package:spotify/src/spotify_base.dart:211)
#3 SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:247)
#4 SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210)
#5 Pages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:253)
#6 SinglePages.stream.handlePageAndGetNext (package:spotify/src/endpoints/endpoint_paging.dart:187)
----------------------------------------
[2024-11-02 14:28:17.693017]---------------------
HandshakeException: Handshake error in client (OS Error:
BAD_DECRYPT(../../../flutter/third_party/boringssl/src/crypto/cipher_extra/e_chacha20poly1305.c:259)
DECRYPTION_FAILED_OR_BAD_RECORD_MAC(../../../flutter/third_party/boringssl/src/ssl/tls_record.cc:294))
----------------------------------------
[2024-11-02 14:40:10.299677]---------------------
No track currently
#0 SyncedLyricsNotifier.build (package:spotube/provider/spotify/lyrics/synced.dart:131)
#1 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:348)
----------------------------------------
```
Is there an existing issue for this? (Please read the description)
Current Behavior
Sort by newest additon as well as oldest addition features seem to be broken ( it doesnt do the sorting right - compared with spotify app). Sort by newest addition doesnt sort correctly.
Expected Behavior
It should sort by newest addition date but it isnt. Im on latest spotube version both on android and desktop
Steps to reproduce
(Open Any playlist) >(sort by tracks)>(by newest addition)
Logs
Logs
``` tform_dispatcher.dart:442) #25 _dispatchPointerDataPacket (dart:ui/hooks.dart:262) ---------------------------------------- [2024-10-29 13:59:53.998902]--------------------- GoError: There is no GoRouterState above the current context. This method should only be called under the sub tree of a RouteBase.builder. #0 GoRouterState.of (package:go_router/src/state.dart:124) #1 ServiceUtils.navigate (package:spotube/utils/service_utils.dart:276) #2 LinkText.build.Operating System
Windows 11 latest version
Spotube version
3.8.3 +36
Installation source
GitHub Releases (Binary)
Additional information
No response
Self grab