Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/data/array_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ namespace MzPeak::Data {
struct EntryCmpFn {
bool operator()(const ArrayIndex::Entry& a, const ArrayIndex::Entry& b) const
{
return a.array_name < b.array_name && a.array_type < b.array_type &&
a.data_type < b.data_type && a.buffer_priority > b.buffer_priority;
if (a.array_name != b.array_name) return a.array_name < b.array_name;
if (a.array_type != b.array_type) return a.array_type < b.array_type;
if (a.data_type != b.data_type) return a.data_type < b.data_type;
return a.buffer_priority > b.buffer_priority;
}
};

Expand Down
4 changes: 2 additions & 2 deletions src/schema/entity_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ std::string entity_type_to_string(EntityType::Type t)
case Chromatogram:
return "chromatogram";
case WavelengthSpectrum:
return "wavelength spectrum";
return "wavelength_spectrum";
}

std::unreachable();
Expand All @@ -38,7 +38,7 @@ EntityType::value_type entity_type_from_string(std::string_view s)
return Spectrum;
} else if (s == "chromatogram") {
return Chromatogram;
} else if (s == "wavelength spectrum") {
} else if (s == "wavelength_spectrum") {
return WavelengthSpectrum;
} else {
return std::string(s);
Expand Down