mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Sort item results in the same order as requested
This commit is contained in:
parent
84f2315e27
commit
9ba1961a0c
@ -1806,6 +1806,12 @@ define(['events', 'datetime', 'appSettings', 'itemHelper', 'pluginManager', 'pla
|
||||
}
|
||||
|
||||
function translateItemsForPlayback(items, options) {
|
||||
if (items.length > 1) {
|
||||
// Use the original request id array for sorting the result in the proper order
|
||||
items.sort(function (a, b) {
|
||||
return options.ids.indexOf(a.Id) - options.ids.indexOf(b.Id);
|
||||
});
|
||||
}
|
||||
|
||||
var firstItem = items[0];
|
||||
var promise;
|
||||
|
Loading…
Reference in New Issue
Block a user