This package is abandoned and no longer maintained. The author suggests using the hypejunction/hypelists package instead.

Object list sorting for Elgg

1.1.3 2016-02-24 18:15 UTC

This package is auto-updated.

Last update: 2019-02-20 19:44:18 UTC


Elgg 2.0

*** NO LONGER MAINTAINED *** The functionality of this plugin has been moved to hypeLists


  • Implements generic API and UI for sorting object lists
  • By default, provides sorting by Title, Time created, Time updated, Likes count, Comments count
  • Provides a filter to list owned content, friends' content, group content
  • Extendable via hooks

Object Sort



Even though you can pass multiple subtypes to the ege* options, filter and sorting options will be determined by the first subtype in the array. So, if you are listing blogs with discussions, only general "object" and "object:blog" hooks will fire.


List objects

echo elgg_view('lists/objects', array(
	'options' => array(
		'types' => 'object',
		'subtypes' => 'discussion',
	'callback' => 'elgg_list_entities',

Custom sort fields

Use 'sort_fields','object' and 'sort_fields',"$object:$subtype" plugin hooks to add new fields to the sort select input. Use 'sort_relationships','object' and 'sort_relationships',"object:$subtype" plugin hook to add new relationship/metadata filter options.

Use 'rel_options', 'object' to add custom queries to ege* options for specici sort field and direction. Use 'sort_options', 'object' to add custom queries to ege* options for specific relationship/metadata filter option.