forked from Plugin-JF-Onkostar/osc-variant
Add optional sorted listing of file contents
This commit is contained in:
@@ -26,7 +26,7 @@ use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::model::{
|
||||
apply_profile_to_form_entry, Ansichten, Entries, Filter, FormEntry, FormEntryContainer,
|
||||
Listable, MenuCategory, PlausibilityRules, Script,
|
||||
Listable, MenuCategory, PlausibilityRules, Script, Sortable,
|
||||
};
|
||||
use crate::model::{Haeufigkeiten, Ordner};
|
||||
use crate::profile::Profile;
|
||||
@@ -183,6 +183,12 @@ impl Listable for DataForm {
|
||||
}
|
||||
}
|
||||
|
||||
impl Sortable for DataForm {
|
||||
fn sorting_key(&self) -> String {
|
||||
self.name.clone()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct DataCatalogues {
|
||||
|
||||
Reference in New Issue
Block a user