enum

Hwaro::Services::ContentSort

Inherits Enum < Comparable < Value < Object

Sort key for listing content. Date is the historical default (newest first, path as tie-breaker); Title and Path sort ascending. --reverse flips whichever order the key produced.

Title matches the template engine's sort_by="title" ordering (Utils::SortUtils.compare_by_title): a plain case-sensitive comparison with path as tie-breaker — the CLI listing and a rendered section index must not order the same titles differently.

Constants

Date = 0
Title = 1
Path = 2

Instance methods

date?

Returns true if this enum value equals Date

Source
path?

Returns true if this enum value equals Path

Source
title?

Returns true if this enum value equals Title

Source