package com.keylightpiano.pianotimeline.ui

import androidx.annotation.StringRes
import com.keylightpiano.pianotimeline.R

/**
 * Available sort modes for the recording list.
 * Each carries a string-resource id for its label (resolved at display time via
 * stringResource), so the labels localize automatically.
 */
enum class SortMode(@StringRes val labelRes: Int) {
    DATE_DESC(R.string.sort_newest),
    DATE_ASC(R.string.sort_oldest),
    ARTIST_AZ(R.string.sort_artist_az),
    ARTIST_ZA(R.string.sort_artist_za),
    TITLE_AZ(R.string.sort_title_az),
    DURATION_DESC(R.string.sort_longest),
    DURATION_ASC(R.string.sort_shortest);
}
