file sort

This commit is contained in:
Evert Prants 2019-01-23 20:53:54 +02:00
parent 21d80172ca
commit 1e7414907f
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 3 additions and 2 deletions

View File

@ -90,11 +90,12 @@
<div class="option">
<label for="st-sortby">Sort tracks by</label>
<select id="st-sortby" name="sortby">
<option value="id">Track ID / Number</option>
<option value="id">Track ID</option>
<option value="title">Title</option>
<option value="artist">Artist</option>
<option value="album">Album</option>
<option value="year">Year</option>
<option value="file">File name</option>
</select>
</div>
<div class="option">

View File

@ -17,7 +17,7 @@ const port = process.env.PORT || 3000
const router = express.Router()
const sortfields = ['id', 'track', 'artist', 'title', 'album', 'year']
const sortfields = ['id', 'track', 'artist', 'title', 'album', 'year', 'file']
const srchcategories = ['title', 'artist', 'album']
router.get('/tracks', async (req, res) => {