Hi Giorgia,
There would likely be differences between these two ranking methods, however we can't say which is "best" as we haven't tested the options extensively.
The theory behind the later ranking method you've suggested is that it provides a degree of "over weighting" to significantly differentially expressed genes that might improve GSEA's sensitivity and specificity towards gene sets that are being driven by changes in those genes. However, we can't say specifically if these potential benefits result in any real improvements over running with the "standard" log2FC ranking. It's worth noting however, that GSEA in it's non-preranked mode, uses the signal to noise ratio, which scales the difference in group means by the standard deviations of the groups - essentially up-weighting genes with tighter standard deviations, the idea there is kind of similar to the idea behind the up-weighting for significant genes in that more robust differences are given more importance to the calculation.
Sorry I can't give you a concrete answer, but hopefully this helps some.
-Anthony
Anthony S. Castanza, PhD
Curator, Molecular Signatures Database
Mesirov Lab, Department of Medicine
University of California, San Diego