Returns a list of alternative files for the given resource.

$resource * The ID of the resource.
$orderby Which column to use for the ordering. Leave empty for the default order.
$sort "asc" or "desc".
$type Optional; return only those of the specified type (set when config option $alt_types is enabled)

Return values

A list of alternative files.