bySort

Returns an Array of wallpapers by the given sort type.

This method belongs to the property - getSpecificWallpapers

Parameters

Returns

Promise<Array<Wallpaper> | null>

Example Code

<getWallpapers>.bySort('newest').then(x => console.log(x));

// OR

<getWallpapers>.bySort('rating', {
    page: 10,
    operator: 'min',
    type: 'phone',
    ratio: [0.75, 1]
}).then(x => console.log(x));

Last updated