Unique items in python array
<p>Is the below if condition correct.I am trying to make a uniques list of dates in the array.So if the date is not present in the array then add it to the array</p>

<pre><code>timestamps= []

timestamps = ['2011-02-22', '2011-02-05', '2011-02-04', '2010-12-14', '2010-12-13', '2010-12-12', '2010-12-11', '2010-12-07', '2010-12-02', '2010-11-30', '2010-11-26', '2010-11-23', '2010-11-22', '2010-11-16']

date="2010-11-22"
if(date not in timestamps):
   timestamps.append(date)

Edit:

And how to sort the array
</code></pre>
