You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
418 B
C#
15 lines
418 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace QuickPlay
|
|
{
|
|
class LexicographicLayoutStrategy : ILayoutStrategy
|
|
{
|
|
public List<IPlayable> LayOut(ICollection<IPlayable> playables)
|
|
{
|
|
List<IPlayable> list = new List<IPlayable>(playables);
|
|
list.Sort((IPlayable x, IPlayable y) => x.Identifier.CompareTo(y.Identifier));
|
|
return list;
|
|
}
|
|
}
|
|
} |