First of all gadazobe, do fish sleep? If the question is do fish sleep like us humans, for the reason of restoring our energies and sleep patterns, the answer would be no. Most fish never sleep, their metabolic rate slow right down and they will seem to rest, but the moment they stop moving the're dead. Fish need to transpire and respire and the only way they can do that is by passing water over their gills. It would be quite exhaustive for the fish if it has to open and close its mouth all the time,just to get enough oxygen through its gills. So it moves gently causing enough water turbulance and increase the amount of dissolved oxygen to pass. Fish do rest, particurarily if the temp. drops, their metabolic rate slows therefore shutting down the need for food and the use of needless waste of energy. This is also a danger period if you have a well planted tank with a lot of fish. During the night the reversal of photosynthesis occurs in plants, so instead of creating a well oxyganated water environment for your fish, at night the oxygen is extracted by the plants and carbon dixode is released as a by product. But this is a cycle and so again when daylight comes all is restored et seq.
As to Cories sleeping, well the reason these are popular fish is they are notorious "winkers". That is their main attraction. In studies they have a thin membrane over their eyeballs and like the action of a road catseye the corys clean their eyeball in much the same manner. Instead of a car tyre running over them to make they flick,as indeed they would if a car ran over them, a chemical stimulii within their optical apparatus triggers off the flicking movement which we percieve as a wink. Sometimes you can see their eyeballs following you independantly of the other, proving chemical eye response. We however love to intrepert human responses to creatures that just do things naturally.