public function getSortOptions(array $params = []) {

		$options = $this->getOptions();

		$plugin = elgg_get_plugin_from_id('hypeLists');
		$settings = $plugin->getAllSettings();

		foreach ($settings as $k => $val) {
			if (!$val) {
				continue;
			}
			list(, $entity_type, $field, $direction) = explode('::', $k);
			if ($entity_type != $this->getEntityType()) {
				continue;
			}
			if ($field && in_array(strtolower($direction), array('asc', 'desc'))) {
				$sort_options[] = "$field::$direction";
			}
		}

		$params['list'] = $this;

		$sort_options = elgg_trigger_plugin_hook('sort_fields', $this->getEntityType(), $params, $sort_options);

		$subtypes = elgg_extract('subtype', $options);
		if (!$subtypes) {
			$subtypes = elgg_extract('subtypes', $options);
		}
		if (!empty($subtypes)) {
			$subtypes = (array) $subtypes;
			$subtype = array_shift($subtypes);
			$sort_options = elgg_trigger_plugin_hook('sort_fields', "object:$subtype", $params, $sort_options);
		}

		return $sort_options;
	}