```
def wiggleSort(self, nums):
#print "nums = ", nums
nums.sort()
#print "after sort, nums = ", nums
for i in range(len(nums)):
if i > 1 and i % 2 == 0:
#print "i = ", i, "nums[i] = ", nums[i]
nums[i-1], nums[i] = nums[i], nums[i-1]
#print "in the end, nums = ", nums
```