WARNING: This server provides a static reference view of the NetKernel documentation. Links to dynamic content do not work. For the best experience we recommend you install NetKernel and view the documentation in the live system .

active:feedSort

Endpoint
Name:xml.feeds.FeedSort
Description:
Id:xml.feeds.FeedSort
Category:accessor
Identifier Syntax

xml.feeds.FeedSort is an accessor using Active URI syntax with the following base identifiers:

Base
active:feedSort

and the following arguments: (for more details on argument passing details see here)

ArgumentRulesTypingDescription
feed
Mandatory
Representation (java.lang.Object)(no description available)
operator
Mandatory
Representation (java.lang.Object)(no description available)
Request Verbs

The following verb is supported:

Verb
SOURCE
Response

The response representation of this accessor for SOURCE requests is unknown.

This accessor throws no documented exceptions.

Import Requirements

To use xml.feeds.FeedSort accessor you must import the module urn:org:netkernel:xml:feeds:

<import>
  <uri>urn:org:netkernel:xml:feeds</uri>
</import>

Sorts a feed based upon a number of criteria.

Resource Identifier Syntax

active:feedSort
+ feed @ [ feed resource ]
+ operator @ [ declarative sort specification ]

The active:feedSort accessor sorts a feed based on the operator argument specification.

Returns IAspectFeed

Operator Sort Format

An example of the format for the xml fragment is as follows:

<sort>
  <date />
</sort>

The sort doc must contain at least one of the following first child elements...

tagdescription
dateSort by date (oldest first)
rdateSort by reverse date (youngest first)
titleSort by title (alphabetic)
rtitleSort by reverse title (reverse-alphabetic)
descriptionSort by description (alphabetic)
rdescriptionSort by reverse description (reverse-alphabetic)
authorSort by author (alphabetic)
rauthorSort by reverse author (reverse-alphabetic)
categorySort by category (alphabetic)
rauthorSort by reverse category (reverse-alphabetic)
updateSort by revision update (oldest first) (Atom Only)
rupdateSort by reverse update (youngest first) (Atom Only)

Sort precedence will take the order specified by the sort entries. For example, specifying 'title' followed by 'date' will sort first by the title and then by date.