Clicking the Sort By button in the Top Toolbar will cause a menu to open up that allows you to sort songs by title or duration. You’ll be able to sort by Song Title (ascending or descending) or Song Duration (ascending or descending). Currently, this is only available on the dedicated windows and macOS apps and not the web or mobile versions.