Add marker sorting

This commit is contained in:
David Molineus
2015-01-08 15:29:07 +01:00
parent 7f79125495
commit 685c9ae1d4
2 changed files with 7 additions and 2 deletions

View File

@@ -107,7 +107,8 @@ class MarkersLayerMapper extends AbstractLayerMapper implements GeoJsonMapper
{
$collection = MarkerModel::findBy(
array('active=1', 'pid=?'),
array($model->id)
array($model->id),
array('order' => 'sorting')
);
return $collection;